<html>
<head>
	<title>Excersise 5</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>
	var numbers = new Array(43711, 315, 2176, 5735, 658, 4175, 5783);
	for (var i = 0;i < 7;i++)
	{
		var isbitone = (((numbers[i] & (1 << 3)) >> 3) == 1);
		if (isbitone === true)
		{
			jsConsole.writeLine("the third bit of " + numbers[i] + " is ONE");
		}
		else
		{
			jsConsole.writeLine("the third bit of " + numbers[i] + " is ZERO");
		}
	}		</script>
</body>
</html>
